package com.quick.proxy.core;


import io.netty.channel.Channel;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * Description: 通道常量
 * Author: 吃素不吃肉
 * Date: 2023/7/4
 *
 * @author 吃素不吃肉
 */
public interface ChannelConstants {
    /**
     * 授权码绑定代理通道
     */
    Map<String, Channel> ACCESS_KEY_PROXY_CHANNEL = new ConcurrentHashMap<>(16);
    /**
     * 映射端口绑定真实代理客户端的ip:port
     */
    Map<Integer, String> MAPPING_PORT_REAL_PROXY_CLIENT_IP_PORT = new ConcurrentHashMap<>(16);
    /**
     * 映射端口绑定代理通道
     */
    Map<Integer, Channel> MAPPING_PORT_PROXY_CHANNEL = new ConcurrentHashMap<>(16);
    /**
     * 访问者id绑定代理通道
     */
    Map<String, Channel> VISITOR_ID_PROXY_CHANNEL = new ConcurrentHashMap<>(16);

}
